package com.kindnesslibrary.network.get;

import android.os.Handler;

import com.kindnesslibrary.network.callback.BaseCallBack;

import java.util.Map;

/**
 * Get回调
 */
public abstract class GetCallBack extends BaseCallBack {

    public GetCallBack(String url, Object content, Handler handler) {
        super(url, content, handler);
    }

    /**
     * 设置参数内容
     * @param content 参数
     */
    public void setContent(Map<String, String> content){
        super.setContent(content);
    }

    /**
     * 返回参数内容
     * @return
     */
    @Override
    public Map<String, String> getContent() {
        return (Map<String, String>)super.getContent();
    }
}
